package cn.java.entity;

public class Order {
    private Long orderid;

    private String ordername;

    private Float price;

    private Long userid;

    public Long getOrderid() {
        return orderid;
    }

    public void setOrderid(Long orderid) {
        this.orderid = orderid;
    }

    public String getOrdername() {
        return ordername;
    }

    public void setOrdername(String ordername) {
        this.ordername = ordername == null ? null : ordername.trim();
    }

    public Float getPrice() {
        return price;
    }

    public void setPrice(Float price) {
        this.price = price;
    }

    public Long getUserid() {
        return userid;
    }

    public void setUserid(Long userid) {
        this.userid = userid;
    }

	@Override
	public String toString() {
		return "Order [orderid=" + orderid + ", ordername=" + ordername + ", price=" + price + ", userid=" + userid
				+ "]";
	}
}